package top.zhangjianyong.tools.service.api;

import top.zhangjianyong.tools.utils.ApiResponse;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface FreeApiService {
    void douyinVideo(HttpServletResponse response) throws IOException;

    ApiResponse douyin();
    ApiResponse douyin(String url,HttpServletResponse response) throws IOException;

    ApiResponse pic();

    ApiResponse pic(String url, HttpServletResponse response) throws IOException;

    ApiResponse hotVideo();

    ApiResponse hotVideoUpdate(String type);
    ApiResponse hotVideoUpdateAll();

    /**
     * 未登录用户在主表更新标记，登陆用户更新关联表记录
     * @param videoId
     * @param watchFlag
     * @return
     */
    ApiResponse watchHotVideo(Long videoId,Integer watchFlag);

    ApiResponse laji(String name);

    ApiResponse lajiHis();
}
